package com.linciping.gradle.inject.view.utils

import java.util.*

data class FragmentHookMethodCell(
    val name: String,
    val desc: String,
    val parent: String,
    val agentName: String,
    val agentDesc: String,
    val paramsStart: Int,
    val paramsCount: Int,
    val opcodes: List<Int>
) {

    override fun equals(other: Any?): Boolean {
        if (other == null) return false
        if (this === other) return true
        if (other !is FragmentHookMethodCell) return false
        return this.name == other.name &&
                this.desc == other.desc &&
                this.parent == other.parent
    }

    override fun hashCode(): Int {
        return Objects.hash(name, desc, parent)
    }
}
